<?php
if(!empty($lists)){
?>
<style>
    .table .new,.notice{
        font-weight: bold;
        color:#D65824;
    }
    .table-bordered{
            border-top:1px solid #ccc;
    }
    .pagination {
        display: inline-block;
        padding-left: 0;
        margin: 20px 0;
        border-radius: 4px;
      }
      .pagination>li {
        display: inline;
      }
      .pagination>li>a, .pagination>li>span {
        position: relative;
        float: left;
        padding: 6px 12px;
        margin-left: -1px;
        line-height: 1.42857143;
        color: #337ab7;
        text-decoration: none;
        background-color: #fff;
        border: 1px solid #ddd;
      }
</style>
<table class="table table-striped table-bordered dataTable" id="data-table-export" aria-describedby="data-table_info" style="width: 80px">
    <thead>
            <th width="5%" class="sorting_desc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Username" style="width: 80px;"><?php echo $this->lang->line('createdTime');?></th>
            <th width="5%" class="sorting_desc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Username" style="width: 120px;"><?php echo $this->lang->line('customersName');?></th>
            <th width="5%" class="sorting_desc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Username" style="width: 80px;"><?php echo $this->lang->line('booking_place_code');?></th>
            <th width="5%" class="sorting_desc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Username" style="width: 80px;"><?php echo $this->lang->line('ship');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 80px;"><?php echo $this->lang->line('net_fare');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 80px;"><?php echo $this->lang->line('real_fare');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 80px;"><?php echo $this->lang->line('profit');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 100px;"><?php echo $this->lang->line('payment_method');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 150px;"><?php echo $this->lang->line('surplus');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 150px;"><?php echo $this->lang->line('note');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 150px;"><?php echo $this->lang->line('booker');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" style="width: 150px;"><?php echo $this->lang->line('check');?></th>
    </thead>
    <tbody role="alert" aria-live="polite" aria-relevant="all">
        <?php
        foreach($lists as $key => $values){
            echo '<tr>';
                echo '<th width="5%" style="width:10px">'.$values['nowday'].'</th>';
                echo '<th width="5%">'.$values['name'].'</th>';
                echo '<th width="5%">'.$values['booking_place_code'].'</th>';
                echo '<th width="5%">'.$values['ship'].'</th>';
                echo '<th width="5%">'.$values['net_fare'].'</th>';
                echo '<th width="5%">'.$values['real_fare'].'</th>';
                echo '<th width="5%">'.$values['loinhuan'].'</th>';
                echo '<th width="15%">'.$values['payment_name'].'</th>';
                echo '<th width="5%">'.$values['sodu'].'</th>';
                echo '<th width="5%">'.$values['payment_note'].'</th>';
                echo '<th width="5%">'.$values['firstname'].'</th>';
                echo '<th width="5%">'.$values['checker'].'</th>';
            echo '</tr>';
        }
        ?>
    </tbody>
</table>
<?php
}
die();